package com.freemyleft.left.left_app.mian.index.work.allcourses.adapter;

import com.freemyleft.left.zapp.ui.recycler.DataConverter;
import com.freemyleft.left.zapp.ui.recycler.MultipleItemEntity;

import java.util.ArrayList;

public class CourserConvert extends DataConverter {
    ArrayList<MultipleItemEntity> entities=new ArrayList<>();
    @Override
    public ArrayList<MultipleItemEntity> convert() {
        int size=3;
        for (int i = 0; i <size ; i++) {
            String name="李阳子";
            String date="8月10日";
            String subject="初三-语文";
            String time="24:00-0:00";
            String week="星期日";
            MultipleItemEntity entity=MultipleItemEntity.builder()
                    .setItemType(CourserAdapter.COURSER_TYPE)
                    .setField(CourserAdapter.CourserFlies.DATE,date)
                    .setField(CourserAdapter.CourserFlies.NAME,name)
                    .setField(CourserAdapter.CourserFlies.SUBJECT,subject)
                    .setField(CourserAdapter.CourserFlies.TIME,time)
                    .setField(CourserAdapter.CourserFlies.WEEK,week).build();
            entities.add(entity);


        }
        return entities;
    }
}
